import 'package:thinking/config/_.dart';
import 'package:thinking/entity/_.dart';
import 'package:thinking/http/Dio.dart';
import 'package:dio/dio.dart';


class ClassListService{
  static Future<List<ClassScreen>?> getClassScreen({Map<String,dynamic>? params}) async{
    var res = await HttpApi().get(url: Config.apiUrl['ApiList']['getClassScreen'],params: params,options:Options(extra:{'showLoading':true}));
    return ClassScreens.fromJson(res).data;
  }

  static Future<HomeResult> getClassListValue({Map<String,dynamic>? params}) async{
    var res = await HttpApi().get(url: Config.apiUrl['ApiList']['getClassListValue'],params: params,options:Options(extra:{'showLoading':false}));
    return HomeResult.fromJson(res['data']);

  }

}